package captcha;

public class Color {
	public Integer red;
	public Integer green;
	public Integer blue;
	public Color(Integer colorCode) {
		blue = colorCode % 255;
		green = (colorCode /255) % 255;
		red = ((colorCode /255)/255) % 255;
	}
	public Integer getStrength() {
		return ((blue+green+red)*1000)/(3*255);
	}
	public Boolean toBoolean() {
		return getStrength() <= 500;
	}
}
